// 项目的菜单配置,以后更改菜单，操作菜单权限，在这修改

import {
  HomeOutlined,
  UnorderedListOutlined,
  ToolOutlined,
  AppstoreAddOutlined, 
  UserOutlined,
  AreaChartOutlined,
  BarChartOutlined,
  UnderlineOutlined,
  PieChartOutlined,
  SafetyCertificateOutlined
} from '@ant-design/icons';

const menuList = [
  {
    title: '首页', // 菜单标题名称
    key: 'home', // 对应的path
    icon: <HomeOutlined />, // 图标名称
    path: '/admin/home' //对应路径
  },
   {
    title: '商品',
    key: 'prod',
    icon: <AppstoreAddOutlined />,
    children: [ // 子菜单列表
      {
        title: '分类管理',
        key: 'category',
        icon: <UnorderedListOutlined />,
        path: '/admin/prod/category'
      },
      {
        title: '商品管理',
        key: 'product',
        icon: <ToolOutlined />,
        path: '/admin/prod/product'
      },
    ]
  },

  {
    title: '用户管理',
    key: 'user',
    icon: <UserOutlined />,
    path: '/admin/user'
  },
   {
    title: '角色管理',
    key: 'role',
    icon: <SafetyCertificateOutlined />,
    path: '/admin/role'
  },

  {
    title: '图形图表',
    key: 'picture',
    icon: <AreaChartOutlined />,
    children: [{
        title: '柱形图',
        key: 'bar',
        icon: <BarChartOutlined />,
        path: '/admin/picture/bar'
      },
      {
        title: '折线图',
        key: 'line',
        icon: <UnderlineOutlined />,
        path: '/admin/picture/line'
      },
      {
        title: '饼图',
        key: 'pie',
        icon: <PieChartOutlined />,
        path: '/admin/picture/pie'
      },
    ]
  },
]

export default menuList